<#include "../common/_meta.ftl">

<body>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-user-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>userName：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${user.userName!'null'}" id="username" name="username">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>password：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${user.password!'null'}" id="password" name="password"
                       title=""/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">phone：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${user.phone!'null'}" id="phone" name="phone">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">现居地：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${user.currentResidence!'null'}" name="currentResidence"
                       id="currentResidence" title="">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>合租：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${user.shared!'null'}" name="shared"
                       id="shared" title="">
            </div>
        </div>
    </form>
</article>


<#include "../common/_footer.ftl">
<script type="text/javascript"
        src="${request.contextPath}/public/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript"
        src="${request.contextPath}/public/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="${request.contextPath}/public/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script>
    $(function () {
        var flg = $("#shared").val()
        if (flg === 1) {
            $("#shared").val("愿意");
        } else {
            $("#shared").val("不愿意");
        }
    })
</script>
</body>

